package mn.idax.exchange.otc.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OTCArbitrationDetailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OTCArbitrationDetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("Id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("Id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("Id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("Id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("Id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("Id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("Id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("Id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("Id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("Id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("Id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("Id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andArbitrationidIsNull() {
            addCriterion("ArbitrationId is null");
            return (Criteria) this;
        }

        public Criteria andArbitrationidIsNotNull() {
            addCriterion("ArbitrationId is not null");
            return (Criteria) this;
        }

        public Criteria andArbitrationidEqualTo(Integer value) {
            addCriterion("ArbitrationId =", value, "arbitrationid");
            return (Criteria) this;
        }

        public Criteria andArbitrationidNotEqualTo(Integer value) {
            addCriterion("ArbitrationId <>", value, "arbitrationid");
            return (Criteria) this;
        }

        public Criteria andArbitrationidGreaterThan(Integer value) {
            addCriterion("ArbitrationId >", value, "arbitrationid");
            return (Criteria) this;
        }

        public Criteria andArbitrationidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ArbitrationId >=", value, "arbitrationid");
            return (Criteria) this;
        }

        public Criteria andArbitrationidLessThan(Integer value) {
            addCriterion("ArbitrationId <", value, "arbitrationid");
            return (Criteria) this;
        }

        public Criteria andArbitrationidLessThanOrEqualTo(Integer value) {
            addCriterion("ArbitrationId <=", value, "arbitrationid");
            return (Criteria) this;
        }

        public Criteria andArbitrationidIn(List<Integer> values) {
            addCriterion("ArbitrationId in", values, "arbitrationid");
            return (Criteria) this;
        }

        public Criteria andArbitrationidNotIn(List<Integer> values) {
            addCriterion("ArbitrationId not in", values, "arbitrationid");
            return (Criteria) this;
        }

        public Criteria andArbitrationidBetween(Integer value1, Integer value2) {
            addCriterion("ArbitrationId between", value1, value2, "arbitrationid");
            return (Criteria) this;
        }

        public Criteria andArbitrationidNotBetween(Integer value1, Integer value2) {
            addCriterion("ArbitrationId not between", value1, value2, "arbitrationid");
            return (Criteria) this;
        }

        public Criteria andOldpleadstatusIsNull() {
            addCriterion("OldPleadStatus is null");
            return (Criteria) this;
        }

        public Criteria andOldpleadstatusIsNotNull() {
            addCriterion("OldPleadStatus is not null");
            return (Criteria) this;
        }

        public Criteria andOldpleadstatusEqualTo(Integer value) {
            addCriterion("OldPleadStatus =", value, "oldpleadstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadstatusNotEqualTo(Integer value) {
            addCriterion("OldPleadStatus <>", value, "oldpleadstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadstatusGreaterThan(Integer value) {
            addCriterion("OldPleadStatus >", value, "oldpleadstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadstatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("OldPleadStatus >=", value, "oldpleadstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadstatusLessThan(Integer value) {
            addCriterion("OldPleadStatus <", value, "oldpleadstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadstatusLessThanOrEqualTo(Integer value) {
            addCriterion("OldPleadStatus <=", value, "oldpleadstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadstatusIn(List<Integer> values) {
            addCriterion("OldPleadStatus in", values, "oldpleadstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadstatusNotIn(List<Integer> values) {
            addCriterion("OldPleadStatus not in", values, "oldpleadstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadstatusBetween(Integer value1, Integer value2) {
            addCriterion("OldPleadStatus between", value1, value2, "oldpleadstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadstatusNotBetween(Integer value1, Integer value2) {
            addCriterion("OldPleadStatus not between", value1, value2, "oldpleadstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadsubstatusIsNull() {
            addCriterion("OldPleadSubStatus is null");
            return (Criteria) this;
        }

        public Criteria andOldpleadsubstatusIsNotNull() {
            addCriterion("OldPleadSubStatus is not null");
            return (Criteria) this;
        }

        public Criteria andOldpleadsubstatusEqualTo(Integer value) {
            addCriterion("OldPleadSubStatus =", value, "oldpleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadsubstatusNotEqualTo(Integer value) {
            addCriterion("OldPleadSubStatus <>", value, "oldpleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadsubstatusGreaterThan(Integer value) {
            addCriterion("OldPleadSubStatus >", value, "oldpleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadsubstatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("OldPleadSubStatus >=", value, "oldpleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadsubstatusLessThan(Integer value) {
            addCriterion("OldPleadSubStatus <", value, "oldpleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadsubstatusLessThanOrEqualTo(Integer value) {
            addCriterion("OldPleadSubStatus <=", value, "oldpleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadsubstatusIn(List<Integer> values) {
            addCriterion("OldPleadSubStatus in", values, "oldpleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadsubstatusNotIn(List<Integer> values) {
            addCriterion("OldPleadSubStatus not in", values, "oldpleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadsubstatusBetween(Integer value1, Integer value2) {
            addCriterion("OldPleadSubStatus between", value1, value2, "oldpleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andOldpleadsubstatusNotBetween(Integer value1, Integer value2) {
            addCriterion("OldPleadSubStatus not between", value1, value2, "oldpleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andPleadstatusIsNull() {
            addCriterion("PleadStatus is null");
            return (Criteria) this;
        }

        public Criteria andPleadstatusIsNotNull() {
            addCriterion("PleadStatus is not null");
            return (Criteria) this;
        }

        public Criteria andPleadstatusEqualTo(Integer value) {
            addCriterion("PleadStatus =", value, "pleadstatus");
            return (Criteria) this;
        }

        public Criteria andPleadstatusNotEqualTo(Integer value) {
            addCriterion("PleadStatus <>", value, "pleadstatus");
            return (Criteria) this;
        }

        public Criteria andPleadstatusGreaterThan(Integer value) {
            addCriterion("PleadStatus >", value, "pleadstatus");
            return (Criteria) this;
        }

        public Criteria andPleadstatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("PleadStatus >=", value, "pleadstatus");
            return (Criteria) this;
        }

        public Criteria andPleadstatusLessThan(Integer value) {
            addCriterion("PleadStatus <", value, "pleadstatus");
            return (Criteria) this;
        }

        public Criteria andPleadstatusLessThanOrEqualTo(Integer value) {
            addCriterion("PleadStatus <=", value, "pleadstatus");
            return (Criteria) this;
        }

        public Criteria andPleadstatusIn(List<Integer> values) {
            addCriterion("PleadStatus in", values, "pleadstatus");
            return (Criteria) this;
        }

        public Criteria andPleadstatusNotIn(List<Integer> values) {
            addCriterion("PleadStatus not in", values, "pleadstatus");
            return (Criteria) this;
        }

        public Criteria andPleadstatusBetween(Integer value1, Integer value2) {
            addCriterion("PleadStatus between", value1, value2, "pleadstatus");
            return (Criteria) this;
        }

        public Criteria andPleadstatusNotBetween(Integer value1, Integer value2) {
            addCriterion("PleadStatus not between", value1, value2, "pleadstatus");
            return (Criteria) this;
        }

        public Criteria andPleadsubstatusIsNull() {
            addCriterion("PleadSubStatus is null");
            return (Criteria) this;
        }

        public Criteria andPleadsubstatusIsNotNull() {
            addCriterion("PleadSubStatus is not null");
            return (Criteria) this;
        }

        public Criteria andPleadsubstatusEqualTo(Integer value) {
            addCriterion("PleadSubStatus =", value, "pleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andPleadsubstatusNotEqualTo(Integer value) {
            addCriterion("PleadSubStatus <>", value, "pleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andPleadsubstatusGreaterThan(Integer value) {
            addCriterion("PleadSubStatus >", value, "pleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andPleadsubstatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("PleadSubStatus >=", value, "pleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andPleadsubstatusLessThan(Integer value) {
            addCriterion("PleadSubStatus <", value, "pleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andPleadsubstatusLessThanOrEqualTo(Integer value) {
            addCriterion("PleadSubStatus <=", value, "pleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andPleadsubstatusIn(List<Integer> values) {
            addCriterion("PleadSubStatus in", values, "pleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andPleadsubstatusNotIn(List<Integer> values) {
            addCriterion("PleadSubStatus not in", values, "pleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andPleadsubstatusBetween(Integer value1, Integer value2) {
            addCriterion("PleadSubStatus between", value1, value2, "pleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andPleadsubstatusNotBetween(Integer value1, Integer value2) {
            addCriterion("PleadSubStatus not between", value1, value2, "pleadsubstatus");
            return (Criteria) this;
        }

        public Criteria andBuyeridIsNull() {
            addCriterion("BuyerId is null");
            return (Criteria) this;
        }

        public Criteria andBuyeridIsNotNull() {
            addCriterion("BuyerId is not null");
            return (Criteria) this;
        }

        public Criteria andBuyeridEqualTo(Integer value) {
            addCriterion("BuyerId =", value, "buyerid");
            return (Criteria) this;
        }

        public Criteria andBuyeridNotEqualTo(Integer value) {
            addCriterion("BuyerId <>", value, "buyerid");
            return (Criteria) this;
        }

        public Criteria andBuyeridGreaterThan(Integer value) {
            addCriterion("BuyerId >", value, "buyerid");
            return (Criteria) this;
        }

        public Criteria andBuyeridGreaterThanOrEqualTo(Integer value) {
            addCriterion("BuyerId >=", value, "buyerid");
            return (Criteria) this;
        }

        public Criteria andBuyeridLessThan(Integer value) {
            addCriterion("BuyerId <", value, "buyerid");
            return (Criteria) this;
        }

        public Criteria andBuyeridLessThanOrEqualTo(Integer value) {
            addCriterion("BuyerId <=", value, "buyerid");
            return (Criteria) this;
        }

        public Criteria andBuyeridIn(List<Integer> values) {
            addCriterion("BuyerId in", values, "buyerid");
            return (Criteria) this;
        }

        public Criteria andBuyeridNotIn(List<Integer> values) {
            addCriterion("BuyerId not in", values, "buyerid");
            return (Criteria) this;
        }

        public Criteria andBuyeridBetween(Integer value1, Integer value2) {
            addCriterion("BuyerId between", value1, value2, "buyerid");
            return (Criteria) this;
        }

        public Criteria andBuyeridNotBetween(Integer value1, Integer value2) {
            addCriterion("BuyerId not between", value1, value2, "buyerid");
            return (Criteria) this;
        }

        public Criteria andSelleridIsNull() {
            addCriterion("SellerId is null");
            return (Criteria) this;
        }

        public Criteria andSelleridIsNotNull() {
            addCriterion("SellerId is not null");
            return (Criteria) this;
        }

        public Criteria andSelleridEqualTo(Integer value) {
            addCriterion("SellerId =", value, "sellerid");
            return (Criteria) this;
        }

        public Criteria andSelleridNotEqualTo(Integer value) {
            addCriterion("SellerId <>", value, "sellerid");
            return (Criteria) this;
        }

        public Criteria andSelleridGreaterThan(Integer value) {
            addCriterion("SellerId >", value, "sellerid");
            return (Criteria) this;
        }

        public Criteria andSelleridGreaterThanOrEqualTo(Integer value) {
            addCriterion("SellerId >=", value, "sellerid");
            return (Criteria) this;
        }

        public Criteria andSelleridLessThan(Integer value) {
            addCriterion("SellerId <", value, "sellerid");
            return (Criteria) this;
        }

        public Criteria andSelleridLessThanOrEqualTo(Integer value) {
            addCriterion("SellerId <=", value, "sellerid");
            return (Criteria) this;
        }

        public Criteria andSelleridIn(List<Integer> values) {
            addCriterion("SellerId in", values, "sellerid");
            return (Criteria) this;
        }

        public Criteria andSelleridNotIn(List<Integer> values) {
            addCriterion("SellerId not in", values, "sellerid");
            return (Criteria) this;
        }

        public Criteria andSelleridBetween(Integer value1, Integer value2) {
            addCriterion("SellerId between", value1, value2, "sellerid");
            return (Criteria) this;
        }

        public Criteria andSelleridNotBetween(Integer value1, Integer value2) {
            addCriterion("SellerId not between", value1, value2, "sellerid");
            return (Criteria) this;
        }

        public Criteria andCustomerserviceidIsNull() {
            addCriterion("CustomerServiceId is null");
            return (Criteria) this;
        }

        public Criteria andCustomerserviceidIsNotNull() {
            addCriterion("CustomerServiceId is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerserviceidEqualTo(Integer value) {
            addCriterion("CustomerServiceId =", value, "customerserviceid");
            return (Criteria) this;
        }

        public Criteria andCustomerserviceidNotEqualTo(Integer value) {
            addCriterion("CustomerServiceId <>", value, "customerserviceid");
            return (Criteria) this;
        }

        public Criteria andCustomerserviceidGreaterThan(Integer value) {
            addCriterion("CustomerServiceId >", value, "customerserviceid");
            return (Criteria) this;
        }

        public Criteria andCustomerserviceidGreaterThanOrEqualTo(Integer value) {
            addCriterion("CustomerServiceId >=", value, "customerserviceid");
            return (Criteria) this;
        }

        public Criteria andCustomerserviceidLessThan(Integer value) {
            addCriterion("CustomerServiceId <", value, "customerserviceid");
            return (Criteria) this;
        }

        public Criteria andCustomerserviceidLessThanOrEqualTo(Integer value) {
            addCriterion("CustomerServiceId <=", value, "customerserviceid");
            return (Criteria) this;
        }

        public Criteria andCustomerserviceidIn(List<Integer> values) {
            addCriterion("CustomerServiceId in", values, "customerserviceid");
            return (Criteria) this;
        }

        public Criteria andCustomerserviceidNotIn(List<Integer> values) {
            addCriterion("CustomerServiceId not in", values, "customerserviceid");
            return (Criteria) this;
        }

        public Criteria andCustomerserviceidBetween(Integer value1, Integer value2) {
            addCriterion("CustomerServiceId between", value1, value2, "customerserviceid");
            return (Criteria) this;
        }

        public Criteria andCustomerserviceidNotBetween(Integer value1, Integer value2) {
            addCriterion("CustomerServiceId not between", value1, value2, "customerserviceid");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("CreateTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("CreateTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("CreateTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CreateTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("CreateTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("CreateTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("CreateTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("CreateTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("CreateTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("CreateTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}